package com.dog.basics.service.common;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dog.basics.bean.dto.admin.common.NewsAddDto;
import com.dog.basics.bean.dto.admin.common.NewsEditDto;
import com.dog.basics.bean.dto.admin.common.NewsFromDto;
import com.dog.basics.bean.model.common.DogNews;
import com.dog.basics.bean.vo.admin.common.NewsVo;
import com.dog.basics.bean.vo.api.common.ApiNewsVo;
import com.dog.basics.common.util.PageParam;

/**
 * <p>
 * 消息通知 服务类
 * </p>
 *
 * @author guonh
 * @since 2020-05-14
 */
public interface IDogNewsService extends IService<DogNews> {
    /**
     * @Description: 分页消息通知
     * @Param: status
     * @return: IPage<NewsVo>
     * @Author: wph
     * @Date:
     */
    IPage<NewsVo> getPageList(PageParam page, NewsFromDto obj);
    /**
     * @Description: api分页消息通知
     * @Param: status
     * @return: IPage<NewsVo>
     * @Author: wph
     * @Date:
     */
    IPage<ApiNewsVo> getApiPageList(PageParam page);


    /**
     * @Description: 获取未读信息个数
     * @return: Integer
     * @Author: wph
     * @Date: 2020/05/19  0027
     */
    Integer getNum();
    /**
     * @Description: 增加消息通知
     * @Param: obj
     * @return: Boolean
     * @Author: wph
     * @Date: 2020/05/19  0027
     */
    Boolean saveObj(NewsAddDto obj);

    /**
     * @Description: 修改消息通知
     * @Param: obj
     * @return: Boolean
     * @Author: wph
     * @Date: 2020/05/19  0027
     */
    Boolean editObj(NewsEditDto obj);

    /**
     * @Description: 删除消息通知
     * @Param: ids
     * @return: Boolean
     * @Author: wph
     * @Date: 2020/05/19  0027
     */
    Boolean deleteObj(Long id);


}
